* {
    margin: 0;
    padding: 0;
}

body {
    background-color: white;
    font-size: 16px; /* Tamaño base */
}

header {
    width: 100%;
    height: auto;
    background-color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header img {
    max-width: 85%;
    height: auto;
}

nav {
    width: 92%;
    height: 50px;
    background-color: white;
    margin: 20px auto;
    border: 2px solid white;
    font-size: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav li {
    margin: 0 15px;
}

nav a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

nav a:hover {
    color: #007BFF;
}

.contenedor {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 10px; /* Padding para evitar que el contenido toque los bordes */
}

section {
    width: 99%;
    height: auto;
    background-color: white;
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    border: 2px solid white;
    color: black;
    box-sizing: border-box;
    padding: 20px;
    text-align: justify;
}

article, aside {
    margin: 10px;
    border: 2px solid white;
    color: black;
    box-sizing: border-box;
    padding: 20px;
}

article {
    flex: 3;
}

aside {
    flex: 1;
}

footer {
    border: 2px solid white;
    background-color: ghostwhite;
    width: 100%;
    height: auto;
    color: blueviolet;
    text-align: center;
    box-sizing: border-box;
    padding: 20px;
    font-size: 1em;
}

footer a {
    color: blueviolet;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: darkviolet;
}

#contenedor {
    width: 98%;
    height: 100px;
    background-color: black;
    margin: auto;
    margin-top: 20px;
    border: 2px solid white;
}

a {
    color: orangered;
    text-decoration: none;
    margin-left: 20px;
    margin-right: 20px;
    transition: all 0.3s ease;
}

p {
    color: black;
    font-size: 1em; /* Tamaño de fuente ajustado */
}

li {
    list-style-type: none;
    display: inline-block;
    background-color: ghostwhite;
    border-radius: 30px;
    font-size: 13px;
    font-family: Arial Black;
    border: 5px solid black;
    margin: 4px;
    transition: all 0.3s ease;
    color: darkpurple;
}

li a:hover {
    padding: 2px;
    background-color: black;
    border-radius: 20px;
    margin-left: 0;
    margin-right: 0;
}

label {
    display: block;
    font-size: 13px;
    padding: 13px 0;
    text-shadow: 1px 1px 1px;
    font-family: Arial;
    color: orangered;
}

input {
    font-size: 20px;
    border-radius: 25px;
    box-shadow: 0 0 20px rgba(192, 203, 251, 0.7);
    width: 100%; /* Asegura que el input ocupe todo el ancho disponible */
}

h1 {
    text-align: center;
    color: black;
}

img {
    background-position: center;
    width: 100%; /* Asegura que la imagen ocupe todo el ancho del contenedor */
    height: auto; /* Mantiene la proporción */
}

/* Media Queries */
@media screen and (max-width: 800px) {
    article, aside {
        flex: 1; /* Igualar espacio en pantallas pequeñas */
        margin: 0; /* Eliminar márgenes */
    }
    
    nav ul {
        flex-direction: column; /* Navegación vertical */
    }
    nav li {
        margin: 10px 0; /* Espaciado vertical */
    }
}

@media screen and (max-width: 400px) {
    .contenedor {
        width: 100%;
    }
    aside {
        display: none; /* Ocultar aside en pantallas muy pequeñas */
    }
    
    body {
        font-size: 14px; /* Tamaño de fuente más pequeño */
    }
}

article img {
    max-width: 70%;
    height: auto;
}